﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace System.Models.Models
{
    /// <summary>
    /// 活动发布信息表
    /// </summary>
    [Table("T_Activity_Release")]
    public class ActivityRelease:BaseEntity
    {
        /// <summary>
        /// 活动名称
        /// </summary>
        [Required, Column(TypeName = "varchar"), StringLength(100)]
        public string ActivityName { get; set; }
        /// <summary>
        /// 活动内容
        /// </summary>
        [Required, Column(TypeName = "varchar"), StringLength(255)]
        public string ActivityContent { get; set; }
        /// <summary>
        /// 活动时间
        /// </summary>
        public DateTime? ActivityTime { get; set; }
        /// <summary>
        /// 报名截止时间
        /// </summary>
        public DateTime? RegistrationDeadline { get; set; }
        /// <summary>
        /// 活动奖励
        /// </summary>
        [Column(TypeName = "varchar"), StringLength(255)]
        public string ActivityReward { get; set; }
        /// <summary>
        /// 是否发布
        /// </summary>
        [Required]
        public bool IsPublish { get; set; } = false;

    }
}
